import ajax from "@/utils/request";
import type {iData} from '@/type/home'
    import type { formProps } from "vant";

//注册
//电话验证
export function verifyTel(data:iData){
    return ajax({
        url:'/user/docheckphone',
        method:'post',
        data
    })
}
// 获取验证码
export function verifyCode(data:iData){
    return ajax({
        url:'/user/dosendmsgcode',
        method:'post',
        data
    })
}
// 验证验证码
export function isCode(data:iData){
    return ajax({
        url:'/user/docheckcode',
        method:'post',
        data
    })
}
//输入密码注册
export function register(data:iData){
    return ajax({
        url:'/user/dofinishregister',
        method:'post',
        data
    })
}


//登录
export function loginFn(data:iData){
    return ajax({
        url:'/user/login',
        method:'post',
        data
    })
}
